{extend name="main" /}

{block name="body"}
{include file="breadcrumb" /}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body" pad15="">
                    <form action="{:request()->url()}" method="post" class="xn_ajax">

                        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                            <ul class="layui-tab-title">
                                <li class="layui-this">微信支付</li>
                                <li>支付宝支付</li>
                            </ul>
                            <div class="layui-tab-content">
                                <!-- 基本设置-->
                                <div class="layui-tab-item layui-show">
                                    {:xn_ConfigView($data,$labelList['weixin'],'weixin')}
                                </div>
                                <!-- 其他配置-->
                                <div class="layui-tab-item">
                                    {:xn_ConfigView($data,$labelList['alipay'],'alipay')}

                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="set_website">确认保存</button>
                                <span>配置读取方式：xn_cfg('{:request()->action()}')</span>
                            </div>
                            <div class="layui-input-block">
                                <a href="/admin/payDemo/pay">点我前往支付测试</a>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}